package _1._0._0._127.ormrpc.services.WSManufactureRecBillFacade;

public class WSManufactureRecBillFacadeSrvProxyProxy implements WSManufactureRecBillFacadeSrvProxy {
    private String _endpoint = null;
    private WSManufactureRecBillFacadeSrvProxy wSManufactureRecBillFacadeSrvProxy = null;

    public WSManufactureRecBillFacadeSrvProxyProxy() {
        _initWSManufactureRecBillFacadeSrvProxyProxy();
    }

    public WSManufactureRecBillFacadeSrvProxyProxy(String endpoint) {
        _endpoint = endpoint;
        _initWSManufactureRecBillFacadeSrvProxyProxy();
    }

    private void _initWSManufactureRecBillFacadeSrvProxyProxy() {
        try {
            wSManufactureRecBillFacadeSrvProxy = (new WSManufactureRecBillFacadeSrvProxyServiceLocator()).getWSManufactureRecBillFacade();
            if (wSManufactureRecBillFacadeSrvProxy != null) {
                if (_endpoint != null)
                    ((javax.xml.rpc.Stub) wSManufactureRecBillFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
                else
                    _endpoint = (String) ((javax.xml.rpc.Stub) wSManufactureRecBillFacadeSrvProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
            }

        } catch (javax.xml.rpc.ServiceException serviceException) {
        }
    }

    public String getEndpoint() {
        return _endpoint;
    }

    public void setEndpoint(String endpoint) {
        _endpoint = endpoint;
        if (wSManufactureRecBillFacadeSrvProxy != null)
            ((javax.xml.rpc.Stub) wSManufactureRecBillFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

    }

    public WSManufactureRecBillFacadeSrvProxy getWSManufactureRecBillFacadeSrvProxy() {
        if (wSManufactureRecBillFacadeSrvProxy == null)
            _initWSManufactureRecBillFacadeSrvProxyProxy();
        return wSManufactureRecBillFacadeSrvProxy;
    }

    public String[] importData(String xmlData) throws java.rmi.RemoteException, manufacturerecbillfacade.client.WSInvokeException {
        if (wSManufactureRecBillFacadeSrvProxy == null)
            _initWSManufactureRecBillFacadeSrvProxyProxy();
        return wSManufactureRecBillFacadeSrvProxy.importData(xmlData);
    }


}